import request from '@/utils/request'


export function structureChartDetailsTree(data) { //树
  return request({
    url: '/sys-center/api/postAttendance/tree',
    method: 'post',
    data
  })
}
export const structureChartDetailsList = (data) => { //查询考勤
  return request.request({
    url: '/sys-center/api/postAttendance/select',
    method: 'POST',
    data
  })
}

export const structureChartDetailsAdd = (data) => { //添加
  return request.request({
    url: '/sys-center/api/postAttendance/addOrUpdate',
    method: 'POST',
    data
  })
}
export function structureChartDetailsExport(data) { //导出
  return request({
    url: '/sys-center/api/postAttendance/export',
    responseType: 'arraybuffer',
    method: 'POST',
    data,
  })
}
